import Axios, { downLoadFile } from '@/utils/request';
/**
 * 标准券查询表数据
 */
export function standardStockList(data: any): Promise<any> {
    return Axios.post('/comprehensive/standardStock', data);
}

/**
 * 交易所回购查询表数据
 */
export function exchangeOnWayHgList(data: any): Promise<any> {
    return Axios.post('/assetSelect/exchangeOnWayHg', data);
}

/**
 * 标准券不足数据
 */
export function queryWarningStandardStock(): Promise<any> {
    return Axios.get('indexMonitor/queryWarningStandardStock');
}

/**
 * 导出接口（标准券查询）
 */
export function standardStockExport(data) {
    return downLoadFile({
        url: 'comprehensive/standardStockExport',
        method: 'post',
        data: data,
        loading: true,
        loadingMsg: '正在准备导出，请稍后··· ···',
    });
}

/**
 * 导出接口(交易所回购查询)
 */
export function exchangeOnWayHgExport(data) {
    return downLoadFile({
        url: 'assetSelect/exchangeOnWayHgExport',
        method: 'post',
        data: data,
        loading: true,
        loadingMsg: '正在准备导出，请稍后··· ···',
    });
}
